<?php

namespace app\api\controller\User;

use app\services\UserLevelService;
use support\Request;

class LevelController
{
    public function list(Request $request)
    {
        try {
            return ok_rsp('成功', UserLevelService::list());
        } catch (\Exception $e) {
            return e_rsp($e);
        }
    }

    public function equity(Request $request)
    {
        try {
            return ok_rsp('成功', UserLevelService::equity());
        } catch (\Exception $e) {
            return e_rsp($e);
        }
    }
}